<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
                xmlns:s="http://jboss.com/products/seam/taglib"
      			xmlns:rich="http://richfaces.org/rich"
      			xmlns:c="http://java.sun.com/jstl/core"
				xmlns:a4j="http://richfaces.org/a4j">
	
	<s:div id="conteudo" styleClass="forms" style="width: 95%">
		<a4j:outputPanel id="panelTabs" >
			<rich:tabPanel switchType="cliente">
		        <rich:tab label="Geral" reRender="panelTabs" process="panelTabs" ajaxSingle="true">   
					<h:form id="formGeral">
						<ui:include src="/paciente/GeralForm.xhtml" />
				    </h:form>
		        </rich:tab>
		        <rich:tab label="Residencial" reRender="panelTabs" process="panelTabs" ajaxSingle="true" actionListener="#{declaracaoAction.fichaContribuinte()}">   
				    <h:form id="formResidencial">
				    </h:form>
		        </rich:tab>
		        <rich:tab label="Comercial" reRender="panelTabs" process="panelTabs" ajaxSingle="true" actionListener="#{declaracaoAction.fichaDIATDeclaracao()}" rendered="#{!declaracao.imovel.isento}">   
				    <h:form id="formComercial">
				    </h:form>
		        </rich:tab>
		        <rich:tab label="Familiares" reRender="panelTabs" process="panelTabs" ajaxSingle="true" actionListener="#{declaracaoAction.calculoImpostoDeclaracao()}">   
				    <h:form id="formFamiliares">
				    </h:form>
		        </rich:tab>
		        <rich:tab label="Responsável" reRender="panelTabs" process="panelTabs" ajaxSingle="true" actionListener="#{declaracaoAction.calculoImpostoDeclaracao()}">   
				    <h:form id="formResponsavel">
				    </h:form>
		        </rich:tab>
		        <rich:tab label="Obsercações" reRender="panelTabs" process="panelTabs" ajaxSingle="true" actionListener="#{declaracaoAction.calculoImpostoDeclaracao()}">   
				    <h:form id="formObservacoes">
				    </h:form>
		        </rich:tab>
		        <rich:tab label="Emergência" reRender="panelTabs" process="panelTabs" ajaxSingle="true" actionListener="#{declaracaoAction.calculoImpostoDeclaracao()}">   
				    <h:form id="formEmergencia">
				    </h:form>
		        </rich:tab>

        	  <rich:tab label="" reRender="panelTabs" process="panelTabs" ajaxSingle="true" actionListener="#{declaracaoAction.salvarDeclaracaoDiat}" title="Salvar Dados Declaração">
	        	  <f:facet name="label">					
				   		<h:graphicImage value="../img/save.png"/>	
				   </f:facet>
        		  <div>
	        	  		<h:form id="formSalvar">
				    	</h:form>
				  </div>
        	  </rich:tab>
			</rich:tabPanel>
		</a4j:outputPanel>	   
	</s:div>	
	
	
</ui:composition>